#sendButton {
    padding: 10px;
    border-radius: 10px;
    background-color: #4D76A4;
    border: none;
    outline: none;
    color: #fff;
    margin-left: 10px;
}

#chatInputText {
    display: flex;
    padding: 10px 10px 0 10px;
}

#chatInputText textarea {
    flex: 1;
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 20px;
    outline: none;
    border: 1px solid #b8b8b8;
    background-color: #fff;
    resize: none;
    font-size: 16px;
    overflow: auto;
}

#chatInputText #sendButton {
    width: 10%;
}

#chatContent {
    -ms-overflow-style: none;
    scrollbar-width: none;
    border-radius: 20px;
    padding: 10px;
    height: 76vh;
    /* 使用视口高度的百分比 */
    overflow-y: scroll;
}

#chatContent::-webkit-scrollbar {
    display: none;
}

/* 左侧聊天消息样式 */
.chat-message-left {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 18px;
    overflow: hidden;
}

.chat-message-avatar-left {
    margin-right: 10px;
    flex: 1;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.chat-message-content-left {
    flex: 13;
}

.chat-message-content-left p:first-child span {
    margin: 5px;
}

.chat-message-avatar-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-message-text-left {
    word-break: break-all;
    margin-top: 5px;
    color: white;
    padding: 10px;
    background-color: rgba(109, 154, 220, 0.8);
    border-radius: 0 20px 20px 20px;
    display: inline-block;
}

/* 右侧聊天消息样式 */
.chat-message-right {
    display: flex;
    flex-direction: row-reverse;
    margin-bottom: 18px;
    overflow: hidden;
}

.chat-message-avatar-right {
    margin-left: 10px;
    flex: 1;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.chat-message-content-right {
    text-align: right;
    flex: 13;
}

.chat-message-content-right p:first-child span {
    margin: 5px;
}

.chat-message-avatar-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-message-text-right {
    word-break: break-all;
    margin-top: 5px;
    color: white;
    padding: 10px;
    text-align: left;
    background-color: rgba(109, 154, 220, 0.8);
    border-radius: 20px 0px 20px 20px;
    display: inline-block;
}

.chat-message-content-right>p:first-child {
    display: flex;
    flex-direction: row-reverse;
}

.userImg {
    width: 100%;
    height: 100%;
}

.userListImg {
    width: 30px;
    border-radius: 50%;
    overflow: hidden;
    height: 30px;
    margin-right: 5px;
}

.userName {
    /* 防止文本换行 */
    white-space: nowrap;
    /* 隐藏溢出的内容 */
    overflow: hidden;
    /* 使用省略号表示被隐藏的文本 */
    text-overflow: ellipsis;
    display: inline-block;
    width: 95px;
}

.userListId {
    display: none;
}

#userList li .userListName {
    display: flex;
    align-items: center;
}

#userList li {
    line-height: 25px;
    box-sizing: border-box;
    padding: 5px;
    margin: 5px 0;
    background-color: #c1e2ec;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    position: relative;
}

#userList {
    height: 550px;
    margin-top: 10px;
    overflow: auto;
}

#userList::-webkit-scrollbar {
    display: none;
}

